import 'package:boss/models/commodity.dart';
import 'package:json_annotation/json_annotation.dart';

part 'un_bound_commodity_list_data.g.dart';

@JsonSerializable()
class UnBoundCommodityData extends Object {

  @JsonKey(name: 'bindCount')
  int bindCount;

  @JsonKey(name: 'commodityList', defaultValue: [])
  List<Commodity> commodityList;

  UnBoundCommodityData(this.bindCount,this.commodityList,);

  factory UnBoundCommodityData.fromJson(Map<String, dynamic> srcJson) => _$UnBoundCommodityDataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UnBoundCommodityDataToJson(this);

}